import Base from "./base";

export default class Login extends Base {
      indexAction() {
            let rules = {
                  username: {
                        string: true,
                        required: true,
                        trim: true,
                  },
                  password: {
                        string: true,
                        required: true,
                  },
                  sign:{
                        string: true,
                        required: true,
                  }
            }
            let flag = this.validate(rules);
            if(!flag){
                  return this.fail(1005,'参数错误')
            }
      }
}